package com.krtech.wecard.module.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.krtech.wecard.module.enums.DataFilterTypeEnum;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MenuVo {
    private Long id;

    private Long pid;

    private String title;

    private String icon;

    private String href;

    private String openType;

    private Integer type;

    private String powerCode;

    private List<MenuVo> children;

    /**
     * 状态(0:禁用,1:启用)
     */
    private Boolean enable;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 权限类型
     */
    private DataFilterTypeEnum dataFilterType;

    /**
     * 创建时间
     */
    private Date createTime;


    /**
     * 计算列 提供给前端组件
     */
    @TableField(exist = false)
    private String checkArr = "0";

    private String path;
}